﻿using System;
using System.Collections.Generic;
using Ideaa.Data.Models.Base;

namespace Ideaa.Data.Models
{
    public class Suggestion : PostEntity
    {
        private ICollection<Vote> votes;

        public Suggestion() 
            : base()
        {
            this.Votes = new HashSet<Vote>();
        }

        public int IdeaId { get; set; }

        public virtual Idea Idea { get; set; }

        public virtual ICollection<Vote> Votes
        {
            get
            {
                return this.votes;
            }
            protected set
            {
                this.votes = value;
            }
        }
    }
}